package com.sjk.eurekacar.service;

import com.sjk.eurekacar.entity.TPerson;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "person",fallbackFactory = PersonServiceFall.class)
public interface PersonService {
    @RequestMapping("/t-person/list")
    public List<TPerson> list();
    @RequestMapping("/t-person/login")
    public TPerson login(@RequestBody TPerson tPerson);
}
